namespace Aurora.TaskScheduler.Dashboard;

/// <summary>
/// 面板的参数
/// </summary>
public class DashboardOptions
{
    internal static string PageBase = "";

    public DashboardOptions()
    {
        // PathMatch = "/taskjob";
        // AllowAnonymousExplicit = true;
    }

    /// <summary>
    /// When behind the proxy, specify the base path to allow spa call prefix.
    /// </summary>
    public string PathBase { get; set; }

    // /// <summary>
    // /// Path prefix to match from url path.
    // /// </summary>
    // public string PathMatch { get; set; }


    /// <summary>
    /// Enable authentication on dashboard request.
    /// </summary>
    public bool UseAuth { get; set; }

    /// <summary>
    /// Allow Explicit to set AllowAnonymous for the CAP dashboard API without use ASP.NET Core global authorization filter.
    /// Default true
    /// </summary>
    public bool AllowAnonymousExplicit { get; set; }


    public string DefaultUserName { get; set; }

    public string DefaultPassword { get; set; }
}